<template>
  <div>
    <van-nav-bar fixed>
      <template #left>
        <van-icon name="arrow-left" @click="$router.go(-1)" />
      </template>
      <template #right>
        <div class="btn1">收藏</div>
      </template>
    </van-nav-bar>

    <div style="height: 46px"></div>

    <div id="step">
      <img style="width: 100vw" src="/baking1/lunbo1.jpeg" />
      <div>
        <h2>紫薯提子花纹吐司</h2>
        <van-divider
          :style="{ borderColor: '#ccc', margin: '0' }"
        ></van-divider>

        <ul>
          <li>
            <div class="author">
              <div>
                <van-image
                  round
                  fit="cover"
                  width="2rem"
                  height="2rem"
                  src="/baking1/logo@57.png"
                />
                <span>丐帮帮主</span>
              </div>
              <div class="btn2">+关注</div>
            </div>
            <div class="intro">
              几乎每天都会吃到中餐 所以偶尔也想换换西式口味
              虽然制作面包蛋糕等烘焙会相对费时费力 但烘焙治愈之处恰恰是烘烤中
              满屋飘香的享受，和品尝成品时 味蕾与视觉的双重满足~
              所以，如果您有两三个小时的空闲 就跟着白鲨一起学起来吧！
            </div>
          </li>
          <li class="li3">
            <h3>食材用料</h3>
            <table>
              <thead>
                <tr v-for="i in 6" :key="i">
                  <td>白沙面包粉</td>
                  <td>260g</td>
                </tr>
              </thead>
            </table>
          </li>
          <li v-for="i in 7" :key="i">
            <h3>步骤1</h3>
            <div>
              <img
                style="width: 100%"
                src="/baking1/FmRfmdMKLILAdmyMpRoIEqZIqdNH (1)"
              />
            </div>
            <p>步骤描述</p>
          </li>
          <li>
            <h3>小贴士</h3>
            <p>烘烤的时间和温度，要根据自己烤箱的脾气进行适当调整哈。</p>
          </li>
        </ul>
      </div>
    </div>
    <van-button style="width: 100%" type="warning">
      <van-icon name="upgrade" />
      上传食谱
    </van-button>
    <div class="title">帮友评论</div>
    <div class="comments">
      <div class="comment">
        <div>
          <van-image
            round
            fit="cover"
            width="2rem"
            height="2rem"
            src="/baking1/logo@57.png"
          ></van-image>
        </div>
        <div class="right">
          <div class="name">
            <span>小泉忧yuu</span>
            <span>2022-10-20 18:21</span>
          </div>
          <div class="content">
            专属天猫双十一红包，专属天猫双十一红包，专属天猫双十一红包，专属天猫双十一红包，专属天猫双十一红包，第一时间领取大概率得红包，分享给别人还能增加大包概率，祝大家领到红包
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
};
</script>

<style scoped>
:deep(.van-nav-bar .van-icon) {
  color: #000;
}
</style>

<style lang="scss" scoped>
.btn1 {
  width: 70px;
  height: 30px;
  font-size: 14px;
  color: #e98b71;
  background-color: #fff;
  border: 1px solid #e98b71;
  border-radius: 30px;
  text-align: center;
  line-height: 30px;
}
.btn2 {
  width: 70px;
  height: 30px;
  font-size: 14px;
  color: #fff;
  background-color: #e98b71;
  border: 1px solid #e98b71;
  border-radius: 30px;
  text-align: center;
  line-height: 30px;
}
.intro {
  font-size: 17px;
  font-weight: 200;
  line-height: 27px;
  color: rgb(49, 49, 49);
}
#step {
  background-color: #fff;
}
#step > div {
  padding: 0 15px;
  li {
    padding: 10px 0;
  }
}
p {
  color: #323233;
}
#artic {
  display: flex;
  overflow-x: scroll;
  /* overflow-x: hidden; */
}
#artic::-webkit-scrollbar {
  background: #fff;
}
.author {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  > div:nth-child(1) {
    display: flex;
    align-items: center;
    > span {
      margin-left: 6px;
    }
  }
  p {
    padding-left: 10px;
  }
}
.li3 {
  table {
    width: 100%;
    color: #323233;
    border-bottom: 1px solid #f2f3f5;
    td {
      width: 50%;
      padding: 5px 0;
    }
  }
}
.title {
  padding: 10px 15px 0;
  background-color: #fff;
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
}
.comments {
  background-color: #fff;
  > .comment {
    padding: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    > .right {
      margin-left: 11px;
      flex-grow: 1;
      > .name {
        display: flex;
        flex-direction: column;
        > span:nth-child(1) {
          color: #e98b71;
          font-size: 15px;
        }
        > span:nth-child(2) {
          font-size: 10px;
          color: rgba(49, 49, 49, 0.5);
        }
      }
      > .content {
        padding-top: 10px;
        font-size: 15px;
        color: #333;
        line-height: 21px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        text-overflow: ellipsis;
        word-break: break-all;
        word-wrap: break-word;
        overflow: hidden;
      }
    }
  }
}
</style>
